<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body>
    {{$msg}}
    <div><text id="time">{{$time}}</text>秒后跳转，无法自动跳转<a href="{{$url}}">请点击这里</a></div>
</body>
<script>
    var time = {{$time}};
    var s = setInterval(function () {
        if(time<=0){
            location.href="{{$url}}"
            clearInterval(s)
        }
        time--;
        document.getElementById("time").innerHTML = time;
    },1000)
</script>
</html>